<template>
  <!-- 基本信息 -->
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item>治愈管理</el-breadcrumb-item>
  </el-breadcrumb>
  <div>
    <el-card label="基本信息">
      <el-table :data="passList">
        <el-table-column prop="id" label="姓名"></el-table-column>
        <!-- 快速复制某行 alt+shift+剪头 -->

        <el-table-column prop="address" label="身份证号"></el-table-column>
        <el-table-column prop="startTime" label="住院日期"></el-table-column>
        <el-table-column prop="endTime" label="住址"></el-table-column>
        <el-table-column prop="reason" label="性别"></el-table-column>
        <el-table-column prop="userId" label="手机号码"></el-table-column>
      </el-table>
    </el-card>
    <!-- 治疗信息 -->

    <el-card label="治疗信息">
      <div>治疗信息
      </div>
      
      <el-form ref="form" :model="form" :label-position="labelPosition" label-width="80px">
      <div class="lie"><el-form-item label="感染源">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="是否重症">
        <el-input v-model="form.idCard"></el-input>
      </el-form-item></div>
      <div class="lie">
      <el-form-item label="电话号码">
        <el-input v-model="form.idCard"></el-input>
      </el-form-item>
     
      <div class="block">
        <el-form-item label="发病症状">
        <el-date-picker v-model="form.time" type="datetime" placeholder="选择日期时间" align="right"
            :picker-options="pickerOptions">
        </el-date-picker>
    </el-form-item>
    </div>
    </div>
    <div class="lie">
      <el-form-item label="诊治医院"  >
       <el-input v-model="form.type"></el-input>
      </el-form-item>
      <el-form-item label="信息备注" >
        <el-input  v-model="form.resource"></el-input>
      </el-form-item>
      </div>
      <el-button color="red">保存</el-button>
    </el-form>
    </el-card>
    <!-- 监测历史 -->
    <el-card label="检测历史">
      <div>检测历史
        <el-button label="监测历史" color="green">添加检测记录</el-button>
      </div>
    </el-card>
  </div>
</template>
<script>
// getAllPassAPi获取所有通行证 发请求
import { ElMessage } from "element-plus";
import {
  getAllPassAPi,
  deletePassApi,
  changePassStatusApi,
  getUserPassApi,
} from "../api/index.js";
export default {
  data() {
    return {
      passList: [],
      searchById: '',
      
            labelPosition: 'left',
          form: {
              name: '',
              idCard: '',
              date1: '',
              date2: '',
              delivery: false,
              type: [],
              resource: '',
              desc: '',
              notice:'',
              time:''
            }
    };
  },
  methods: {
    handleClick(row) {
        console.log(row);
      },
    // 5.重置
    reset() {
      this.searchById = ''
      this.getPassList()
    }

  },
  // created() {
  //   this.getPassList();

  // },

};
</script>

<style lang="less" scoped>
   .el-card{
            margin-top: 20px;
        }
      .el-form{
        padding-top: 20px;
        width: 800px;
      }
      .el-input{
        width: 220px;
      }
      .lie{
        display: flex;
      }
      .el-table-column{
        margin-left: 10px;
      }
</style>